using UnityEngine;
using UnityEngine.UI;

public class EE_UI_Shop : MonoBehaviour
{
    [SerializeField] public GameObject elements = null;
    [SerializeField] private Button closeButton = null;
    
    private static EE_UI_Shop instance = null; public static EE_UI_Shop Instance {get{return instance;}}

    private void Awake()
    {
        instance = this;
        elements.SetActive(false);
    }

    private void Start()
    {
        closeButton.onClick.AddListener(CloseShop);
    }

    private void CloseShop()
    {
        SetStatus(false);
        EE_UI_Main.Instance.SetStatus(true);
    }
    
    public void SetStatus(bool status)
    {
        elements.SetActive(status);
    }
}